package com.sanjiahantang.ythshopping.views;

import android.support.annotation.Nullable;

import com.sanjiahantang.ythshopping.model.BaseModel;
import com.sanjiahantang.ythshopping.model.BestNewHotModel;
import com.sanjiahantang.ythshopping.model.GoodsInfoModel2;
import com.sanjiahantang.ythshopping.model.GoodsInfoModel2.Attribute;

import java.util.List;

public interface GoodDetatileView {
    void albumData(String[] albums);// 商品相册信息

    void attributeData(List<Attribute> attributes);// 属性信息

    void paramData(String param,String num);// 基本参数


    void onLoadGoodsInfoDatas(@Nullable GoodsInfoModel2 datas);

    /**
     * 加入购物车回调
     *
     * @param data
     */
    void onAddCarShopping(@Nullable BaseModel data);

    /**
     * 收藏商品
     *
     * @param data
     */
    void onCollectGoods(BaseModel data);

    /**
     * 取消收藏商品
     *
     * @param data
     */
    void cancelCollectGoods(BaseModel data);

    void loadBrandsData(BestNewHotModel model);
}
